#ifndef DIALOGDATA_H
#define DIALOGDATA_H

#include <QDialog>
#include <cdataitem.h>
#include <QStandardItemModel>

namespace Ui {
    class DialogData;
}


class DialogData : public QDialog
{
    Q_OBJECT

public:
    explicit DialogData(QWidget *parent = 0);
    ~DialogData();

private:
    Ui::DialogData *ui;

    QStandardItemModel *m_imContent;
    //CDataItem m_data;
    QString m_sCurrFile;
    int m_nCurrIndex;

    QStandardItemModel* InitACTableView();
    void AddACTableItem(QStandardItemModel*im, DATA_ITEM *pItem);
private slots:
    void on_tv_contents_clicked(QModelIndex index);
    void on_btn_exit_clicked();
    void on_btn_save_clicked();
    void on_btn_open_clicked();
    void on_btn_del_clicked();
    void on_btn_modify_clicked();
    void on_btn_add_clicked();
};

#endif // DIALOGDATA_H
